package com.ruoyi.develop.goodsSaleMaterialMain.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.develop.goodsSaleMaterialChild.domain.GoodsSaleMaterialChild;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 领料单对象 goods_sale_material_main
 *
 * @author lmm
 * @date 2025-08-18
 */
public class GoodsSaleMaterialMain extends BaseEntity {
private static final long serialVersionUID=1L;

    /** 主键 */
    private String id;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String factoryProdId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String factoryProdNo;

    /** 需求日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    @Excel(name = "需求日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date needTime;

    /** 领料单名称 */
    @Excel(name = "领料单名称")
    private String name;

    /** 领料单号 */
    @Excel(name = "领料单号")
    private String code;

    /** 车间 */
    @Excel(name = "车间")
    private String chejian;

    /** 用途 */
    @Excel(name = "用途")
    private String usedto;

    /** 使用人 */
    @Excel(name = "使用人")
    private String people;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String type;

    List<GoodsSaleMaterialChild> goodsSaleMaterialChild;

    public List<GoodsSaleMaterialChild> getGoodsSaleMaterialChild() {
        return goodsSaleMaterialChild;
    }

    public void setGoodsSaleMaterialChild(List<GoodsSaleMaterialChild> goodsSaleMaterialChild) {
        this.goodsSaleMaterialChild = goodsSaleMaterialChild;
    }

    public void setId(String id)
            {
            this.id = id;
            }

    public String getId()
            {
            return id;
            }
    public void setDelFlag(String delFlag)
            {
            this.delFlag = delFlag;
            }

    public String getDelFlag()
            {
            return delFlag;
            }
    public void setStatus(String status)
            {
            this.status = status;
            }

    public String getStatus()
            {
            return status;
            }
    public void setFactoryProdId(String factoryProdId)
            {
            this.factoryProdId = factoryProdId;
            }

    public String getFactoryProdId()
            {
            return factoryProdId;
            }
    public void setFactoryProdNo(String factoryProdNo)
            {
            this.factoryProdNo = factoryProdNo;
            }

    public String getFactoryProdNo()
            {
            return factoryProdNo;
            }
    public void setNeedTime(Date needTime)
            {
            this.needTime = needTime;
            }

    public Date getNeedTime()
            {
            return needTime;
            }
    public void setName(String name)
            {
            this.name = name;
            }

    public String getName()
            {
            return name;
            }
    public void setCode(String code)
            {
            this.code = code;
            }

    public String getCode()
            {
            return code;
            }
    public void setChejian(String chejian)
            {
            this.chejian = chejian;
            }

    public String getChejian()
            {
            return chejian;
            }
    public void setUsedto(String usedto)
            {
            this.usedto = usedto;
            }

    public String getUsedto()
            {
            return usedto;
            }
    public void setPeople(String people)
            {
            this.people = people;
            }

    public String getPeople()
            {
            return people;
            }
    public void setType(String type)
            {
            this.type = type;
            }

    public String getType()
            {
            return type;
            }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("delFlag",getDelFlag())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
            .append("remark",getRemark())
            .append("status",getStatus())
            .append("factoryProdId",getFactoryProdId())
            .append("factoryProdNo",getFactoryProdNo())
            .append("needTime",getNeedTime())
            .append("name",getName())
            .append("code",getCode())
            .append("chejian",getChejian())
            .append("usedto",getUsedto())
            .append("people",getPeople())
            .append("type",getType())
        .toString();
    }
}
